import { ElTag } from 'element-plus'
import { defineComponent } from 'vue'

import { statusTagProps } from './StatusTag.define'

export default defineComponent({
  name: 'StatusTag',
  props: statusTagProps(),
  render() {
    return this.value === '0' ? (
      <ElTag>正常</ElTag>
    ) : (
      <ElTag type="danger">停用</ElTag>
    )
  }
})
